package com.demo.service;


import java.util.List;

import com.demo.entity.enums.UserRoleTypeEnum;
import com.demo.entity.po.Appointment;

import com.demo.entity.query.AppointmentQuery;

import com.demo.entity.vo.PaginationResultVO;

/**
 * @Description:咨询预约表service
 * @Date:2025-03-01
 * @author：author
*/
public interface AppointmentService{

	/**
	 * 根据条件查询列表
	 */
	List<Appointment> findListByParam(AppointmentQuery query);

	/**
	 * 根据条件查询数量
	 */
	Integer findCountByParam(AppointmentQuery query);

	/**
	 * 分页查询
	 */
	PaginationResultVO<Appointment> findListByPage(AppointmentQuery  query);

	/**
	 * 新增
	 */
	Integer  add(Appointment bean);

	/**
	 * 批量新增
	 */
	Integer  addBatch(List<Appointment> listBean);

	/**
	 * 批量新增或者修改
	 */
	Integer  addOrUpdateBatch(List<Appointment> listBean);


	/**
	 * 根据AppointmentId查询
	 */
	Appointment getAppointmentByAppointmentId(Long appointmentId);

	/**
	 * 根据AppointmentId更新
	 */
	Integer updateAppointmentByAppointmentId(Appointment bean, Long appointmentId);

	/**
	 * 根据AppointmentId删除
	 */
	Integer deleteAppointmentByAppointmentId(Long appointmentId);


	void updateStatus(Long userId, Long appointmentId, Integer status, UserRoleTypeEnum typeEnum);

	/**
	 * 保存预约信息
	 * @param appointment
	 */
	void saveInfo(Appointment appointment);

	/**
	 * 删除预约信息
	 * @param appointmentQuery
	 */
	void deleteByParam(AppointmentQuery appointmentQuery);

}